<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Shared memory support</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"/><LINK
REL="HOME"
TITLE="Cygwin/X User's Guide"
HREF="cygwin-x-ug.html"/><LINK
REL="UP"
TITLE="Using Cygwin/X"
HREF="using.html"/><LINK
REL="PREVIOUS"
TITLE="Windows Clipboard integration"
HREF="using-clipboard-integration.html"/><LINK
REL="NEXT"
TITLE="Displaying remote clients"
HREF="using-remote-apps.html"/><META
HTTP-EQUIV="Content-Type"
CONTENT="text/html;charset=utf-8"/></HEAD
><BODY
CLASS="sect1"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Cygwin/X User's Guide</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="using-clipboard-integration.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 3. Using Cygwin/X</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="using-remote-apps.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"/></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="using-shared-memory"
>Shared memory support</A
></H1
><P
>&#13;Shared memory is needed by the MIT-SHM and XFree86-BigFont extensions,
which may provide better performance for local applications which use large images or fonts
and are written to use those extensions.
</P
><P
>&#13;In Cygwin, XSI shared memory is provided by the <B
CLASS="command"
>cygserver</B
> Windows service.
To install <B
CLASS="command"
>cygserver</B
>, install it using the setup program,
run the <B
CLASS="command"
>cygserver-config</B
> script to install the service,
and then reboot or use <B
CLASS="command"
>cygrunsrv -S cygserver</B
> to start the service.</P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Note: </B
>
<SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>&#13;This note is applicable to Cygwin 1.5 only.  Cygwin 1.7 automatically enables shared
memory if the <B
CLASS="command"
>cygserver</B
> Windows service is running.
</I
></SPAN
>
</P
><P
>&#13;Shared memory will only be used if the
<CODE
CLASS="parameter"
>CYGWIN</CODE
> environment variable contains the <CODE
CLASS="parameter"
>server</CODE
>
keyword.
</P
><P
>For example, starting <B
CLASS="command"
>X</B
> with
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="screen"
>&#13;CYGWIN=server X
</PRE
></TD
></TR
></TABLE
>
or setting the <CODE
CLASS="parameter"
>CYGWIN</CODE
> environment variable
in the Windows control panel to contain <CODE
CLASS="parameter"
>server</CODE
>
will enable shared memory support if the <B
CLASS="command"
>cygserver</B
>
service is running.
</P
></BLOCKQUOTE
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"/><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="using-clipboard-integration.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="cygwin-x-ug.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="using-remote-apps.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Windows Clipboard integration</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="using.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Displaying remote clients</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>